package com.BCryptPasswordEncoder;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class Password {
    //密码加密操作
    private static BCryptPasswordEncoder passwordEncoder=new BCryptPasswordEncoder();

    public static String encodingPassword(String password){
        return passwordEncoder.encode(password);
    }

    public static void main(String[] args) {
        String password="123";
        System.out.println(encodingPassword(password));
    }
}
